The previous code stopped working suddenly after I added iOS 15 simulator. Resetted Sonoma and reinstalled Xcode and couldn't make it work again. But it worked once and I decided to add a proper delay. New code is working every time now:
double delayInSeconds = 1.0; // set the delay time
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[self readIssue:issue];
});
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: